Recommendations for debugging and accessing variable definitions within procedures in notebooks #29
Replies: 1 comment
-
We don't support debugging with notebooks at this point in time. In fact, we always execute I'm on the fence about us ever adding debugging into notebooks considering we have some technical hurdles we would also have to cross and I'm unsure about the user experience in VSCode if you are debugging a notebook and have the debug console open at the same time. Right now I think we have two concepts for user experience:
With notebooks, if you just use main level programs, you can always access variables after-the-fact. We also just added some indicators to tell you where you stopped in cells, but you aren't in that scope for IDL since we execute After we get a new debugger for IDL, we might be able to revisit this. But it will also depend on the VSCode UI interactions as well since we have two use cases right now that both need the debug toolbar and it might cause confusion with two of them open. |
Beta Was this translation helpful? Give feedback.
-
Typically when running IDL from the terminal, I use a
stop
statement before theend
of my procedure, so that I can still access the variables, which are cleared out when the routine 'ends'. For example, I would write something like the following:In a terminal session, this will allow me to access the variable
a
and check if the values are as expected, which could be very useful for debugging. Now, within the IDL notebooks, this throws up an error. So, I was wondering if there are any recommendations on what could be an equivalent of the stop statement here?Beta Was this translation helpful? Give feedback.
All reactions