Comments (3)
I'll have to give this one some thought. I agree that it would be an incredibly useful feature (and it might be the one that I've got most requests for, so far). I also think that one of the most important qualities of a debugger is that it should never change how the code behaves, and I am not sure yet if this feature can be implemented in a foolproof way.
I should add that the debugger will step into other functions and files, as long as the target is wrapped in a @debug
block as well. Se also #19, where the idea was to be able to wrap code in a @debuggable
macro to save the AST so that it could be instrumented later. If I attempt something like this, that is probably where I would start.
from debug.jl.
No big deal. I thought I had tried stepping into a function in another
file wrapped in @debug
, but I'll try again.
Any thoughts on context printing from issue #37?
On Tue, Mar 5, 2013 at 1:12 AM, toivoh [email protected] wrote:
I'll have to give this one some thought. I agree that it would be an
incredibly useful feature (and it might be the one that I've got most
requests for, so far). I also think that one of the most important
qualities of a debugger is that it should never change how the code
behaves, and I am not sure yet if this feature can be implemented in a
foolproof way.I should add that the debugger will step into other functions and files,
as long as the target is wrapped in a @debug block as well. Se also #19#19,
where the idea was to be able to wrap code in a @debuggable macro to save
the AST so that it could be instrumented later. If I attempt something like
this, that is probably where I would start.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/38#issuecomment-14425262
.
from debug.jl.
You're right, stepping into functions in other files does work as long as
they're wrapped in @debug
.
With the context printing (using a slightly modified parser) the debugging
experience is quite nice. No rush, but when you have a chance, let's
figure out what the best course of action is for this. I determined that
the julia parser only returns file information for lines in functions. One
can fix this by modifying a few lines in the parser scheme file, but we
should probably talk to the core guys to make sure it's done in an
efficient way.
Thanks, sorry to hijack this issue.
from debug.jl.
Related Issues (20)
- Trap ERROR HOT 3
- Test failure HOT 1
- Error on Pkg.add("Debug") HOT 2
- [PkgEval] Debug may have a testing issue on Julia 0.3 (2014-07-14) HOT 1
- Ctrl-D triggers error HOT 3
- "invalid assignment location" when I use a form of for loop syntax HOT 5
- [PkgEval] Debug may have a testing issue on Julia 0.4 (2014-10-23) HOT 1
- Using @debug function func(x) results in ERROR: T not defined HOT 6
- Semicolon does not suppress output in debugger HOT 1
- In the debugger, if blocks DO introduce new scope. HOT 1
- debug with keyword arguments HOT 2
- Expose functionality for eval in local scope HOT 1
- @debug causes stack overflow in serialize() HOT 4
- [PkgEval] Debug may have a testing issue on Julia 0.4 (2015-07-04)
- Debug macro makes function disappear inside an iprofile block HOT 6
- Debug macro makes function disappear when used with @Logging.configure (Logging.jl)
- Plans for package HOT 3
- Does Debug.jl support IJulia? HOT 3
- Debug not working with Julia v0.5 HOT 9
- Info about upcoming removal of packages in the General registry
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from debug.jl.