-
Notifications
You must be signed in to change notification settings - Fork 23
Closed as not planned
Labels
Description
Please search existing issues to avoid duplicates.
Details
- Atom version: 1.35.1
- Julia version: 1.1.0
- OS: Win10 x64
- Package versions:
- Atom.jl: 0.8.3
- julia-client: 0.8.2
- ink: 0.10.2
Steps to reproduce
@Enter into a function containing this array comprehension and then step over it:
nlocalmolecules = 3;
radius = 400;
iterations = 10000;
randomcoordinates1 = [randomcoordinates2d(nlocalmolecules1, radius) for i ∈ 1:iterations]
where
function randomcoordinates2d(count, radius)
angles = rand(count) * τ # from Tau.jl
radii = sqrt.(rand(count) .* (radius ^ 2)) # required for a uniform distribution around the circle
x = radii .* cos.(angles)
y = radii .* sin.(angles)
z = zeros(count)
return [x'; y'; z']
end
The code executes correctly and quickly outside the debugging context. In the debugging context, it is saturating my CPU and doesn't end. If I reduce the iteration count to 10, it works relatively quickly.
If there isn't an easy way to speed this up, would one idea be to add a button to process the next line without debugging?
It'd be even more helpful to break execution without losing the workspace, but that's probably a bigger issue?
xh4