Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Debugging: Run line
#1
in SQL server, when you're building a sql statement, you are able to highlight just a small section and hit run and it will ignore the entire sql code in the page except for what is highlighted. Is that possible in QM? it would really be handy!
An old blog on QM coding and automation.

The Macro Hook
#2
Can create macro that encloses nonselected parts of QM editor code into #if 0 ... #endif and runs the macro. But then will need to undo.
Other macro could undo it, even if edited. Add some special string to #if 0 and #endif to find what to undo.

#if 0 ;;undo
don't run this
don't run this
don't run this
#endif ;;undo
run this selected text
run this selected text
run this selected text
#if 0 ;;undo
don't run this
don't run this
don't run this
#endif ;;undo

-----------------------

Or insert goto.

goto undo1
don't run this
don't run this
don't run this
;undo1
run this selected text
run this selected text
run this selected text
goto undo2
don't run this
don't run this
don't run this
;undo2
#3
Ooooo, that gave me an idea.
now whatever I've selected gets executed in a new mac and then the mac is deleted.

Function Macro2
Trigger - //FF_Keyboard2     Help - how to add the trigger to the macro
Code:
Copy      Help
_s.getsel
_s.from(_s "[]" "")
newitem("debugtemp" _s "" "" "" 1)
mac "debugtemp"
newitem("debugtemp" "" "" "" "" 32)
An old blog on QM coding and automation.

The Macro Hook
#4
In any case, possible various problems. For example, variables that are not declared or not initialized.
#5
yeah, but that's ok. this came up this week when i was debugging a process that needed me to rename a file or move some files. it'll get me where I'm going anyway. if i need a bunch of vars i'll have to come up with a differ solution (like selecting multiple non-contiguous lines in the code)....can Scintilla do that?
An old blog on QM coding and automation.

The Macro Hook
#6
In scintilla only 1 selection is possible.


Forum Jump:


Users browsing this thread: 1 Guest(s)