Viewing programs that contain coding errors: Difference between revisions
(Created page with "__TOC__ <span class="f_Para">Debugger handling of errors differs according to the type of error: compilation errors or request cancelling (runtime) errors.</span> <div style=...") |
No edit summary |
||
Line 15: | Line 15: | ||
{| | {| | ||
|width="100%"| | |width="100%"| | ||
<span class="f_Para">If a program contains a compilation error, you can still use the Debugger to view the source code, along with the </span><var>Model 204</ | <span class="f_Para">If a program contains a compilation error, you can still use the Debugger to view the source code, along with the </span><var>Model 204</var><span class="f_Para"> error messages embedded (highlighted and prefixed with </span><span class="f_Monospace">ER></span><span class="f_Para">) after the program statements that caused them: </span> | ||
[[compileerr3a1.zoom65.gif|[[File:compileerr3a1.zoom65_zoom75.gif|class=image-toggle|compileerr3a1.zoom65_zoom75]][[File:data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaW1hZ2UtdG9nZ2xlLW1hZ25pZmllciIgdmlld2JveD0iLTEgLTEgMjUgMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTSA5LjE0NSAxOC4yOSBjIC01LjA0MiAwIC05LjE0NSAtNC4xMDIgLTkuMTQ1IC05LjE0NSBzIDQuMTAzIC05LjE0NSA5LjE0NSAtOS4xNDUgcyA5LjE0NSA0LjEwMyA5LjE0NSA5LjE0NSBzIC00LjEwMiA5LjE0NSAtOS4xNDUgOS4xNDUgWiBtIDAgLTE1LjE2NyBjIC0zLjMyMSAwIC02LjAyMiAyLjcwMiAtNi4wMjIgNi4wMjIgcyAyLjcwMiA2LjAyMiA2LjAyMiA2LjAyMiBzIDYuMDIzIC0yLjcwMiA2LjAyMyAtNi4wMjIgcyAtMi43MDIgLTYuMDIyIC02LjAyMyAtNi4wMjIgWiBtIDkuMjYzIDEyLjQ0MyBjIC0wLjgxNyAxLjE3NiAtMS44NTIgMi4xODggLTMuMDQ2IDIuOTgxIGwgNS40NTIgNS40NTMgbCAzLjAxNCAtMy4wMTMgbCAtNS40MiAtNS40MjEgWiI+PC9wYXRoPjwvc3ZnPg==|class=image-toggle-magnifier]]]]<span class="f_Para"> </span> | [[compileerr3a1.zoom65.gif|[[File:compileerr3a1.zoom65_zoom75.gif|class=image-toggle|compileerr3a1.zoom65_zoom75]][[File:data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaW1hZ2UtdG9nZ2xlLW1hZ25pZmllciIgdmlld2JveD0iLTEgLTEgMjUgMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTSA5LjE0NSAxOC4yOSBjIC01LjA0MiAwIC05LjE0NSAtNC4xMDIgLTkuMTQ1IC05LjE0NSBzIDQuMTAzIC05LjE0NSA5LjE0NSAtOS4xNDUgcyA5LjE0NSA0LjEwMyA5LjE0NSA5LjE0NSBzIC00LjEwMiA5LjE0NSAtOS4xNDUgOS4xNDUgWiBtIDAgLTE1LjE2NyBjIC0zLjMyMSAwIC02LjAyMiAyLjcwMiAtNi4wMjIgNi4wMjIgcyAyLjcwMiA2LjAyMiA2LjAyMiA2LjAyMiBzIDYuMDIzIC0yLjcwMiA2LjAyMyAtNi4wMjIgcyAtMi43MDIgLTYuMDIyIC02LjAyMyAtNi4wMjIgWiBtIDkuMjYzIDEyLjQ0MyBjIC0wLjgxNyAxLjE3NiAtMS44NTIgMi4xODggLTMuMDQ2IDIuOTgxIGwgNS40NTIgNS40NTMgbCAzLjAxNCAtMy4wMTMgbCAtNS40MiAtNS40MjEgWiI+PC9wYXRoPjwvc3ZnPg==|class=image-toggle-magnifier]]]]<span class="f_Para"> </span> |
Revision as of 03:45, 17 November 2022
Debugger handling of errors differs according to the type of error: compilation errors or request cancelling (runtime) errors.
[javascript:HMToggle('toggle','TOGGLE0186A1','TOGGLE0186A1_ICON') Compilation errors ] |
If a program contains a compilation error, you can still use the Debugger to view the source code, along with the Model 204 error messages embedded (highlighted and prefixed with ER>) after the program statements that caused them: [[compileerr3a1.zoom65.gif|[[File:data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaW1hZ2UtdG9nZ2xlLW1hZ25pZmllciIgdmlld2JveD0iLTEgLTEgMjUgMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTSA5LjE0NSAxOC4yOSBjIC01LjA0MiAwIC05LjE0NSAtNC4xMDIgLTkuMTQ1IC05LjE0NSBzIDQuMTAzIC05LjE0NSA5LjE0NSAtOS4xNDUgcyA5LjE0NSA0LjEwMyA5LjE0NSA5LjE0NSBzIC00LjEwMiA5LjE0NSAtOS4xNDUgOS4xNDUgWiBtIDAgLTE1LjE2NyBjIC0zLjMyMSAwIC02LjAyMiAyLjcwMiAtNi4wMjIgNi4wMjIgcyAyLjcwMiA2LjAyMiA2LjAyMiA2LjAyMiBzIDYuMDIzIC0yLjcwMiA2LjAyMyAtNi4wMjIgcyAtMi43MDIgLTYuMDIyIC02LjAyMyAtNi4wMjIgWiBtIDkuMjYzIDEyLjQ0MyBjIC0wLjgxNyAxLjE3NiAtMS44NTIgMi4xODggLTMuMDQ2IDIuOTgxIGwgNS40NTIgNS40NTMgbCAzLjAxNCAtMy4wMTMgbCAtNS40MiAtNS40MjEgWiI+PC9wYXRoPjwvc3ZnPg==|class=image-toggle-magnifier]]]] As shown above, the status strip displays a Compile errors! message, and the Run button is the only program execution operation available.
Clicking Run (or selecting Error > Quit) invokes no further operation on the code, and (if Janus Debugger) the Web Server sends the compilation error messages to the browser, then advances to the next program, if any. If under the TN3270 Debugger, the compilation error messages are sent to the terminal. |
[javascript:HMToggle('toggle','TOGGLE0186A3','TOGGLE0186A3_ICON') Request cancellation errors ] |
If a program contains a request cancelling (runtime) error, the Debugger lets you step through the program until you execute the statement that causes the error, or if you click Run, executes until the point of the error. At this point, the Client displays the source code (highlighting the line that has the error), for example: It also:
|