Forum > Debugger
An instruction to pause the debugger. [SOLVED]
BrunoK:
--- Quote from: Martin_fr on July 01, 2024, 03:16:04 pm ---
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---asm nopend;and set a breakpoint there.
--- End quote ---
The initial use case is Coco/R parser generated pascal code that analyze a .txt file containing measurement results in text form. In some languages (french) the .txt file has a grammar is not LL(1) and needs quite a bit of debbugging and tweaking of the coco EBNF file description / normalization to be able to inject info in my database.
I don't know where the point I want to BreakPoint will end up in the unit after the generating step, so it is more practical to have a instruction that suspends the execution at the desired point rather than laboriously deleting / re adding break points in the debugger.
The inlining pops'up the stack trace at the line of the call of my local BreakPoint instruction call and one F7 places me on the instruction following the call, what is not to like.
BrunoK:
--- Quote from: 440bx on July 01, 2024, 03:15:35 pm ---...
IOW, it takes _zero_ bytes. Basically, you can have your cake and eat it too whenever convenient.
HTH.
--- End quote ---
Taking a few bytes / tens of bytes is none of my problem.
440bx:
--- Quote from: BrunoK on July 01, 2024, 04:56:49 pm ---Taking a few bytes / tens of bytes is none of my problem.
--- End quote ---
I can relate to that. On today's multi-gigabyte machine it isn't a priority to squeeze a few bytes out (except in genuinely rare cases.)
Still, I thought I'd mention it for completeness and just in case you might have been interested.
Navigation
[0] Message Index
[*] Previous page