Just-In-Time debugging allows a debugger to be connected to a running application when an error occurs.
Restriction: The following applies to native code only.
This is how you use the
Micro Focus Native Debugger for Just-In-Time debugging when a runtime error occurs:
- Just-In-Time debugging must be enabled. See
To enable just-in-time debugging for when the application fails
.
- When a runtime error occurs, the
Visual Studio Just-In-Time Debugger dialog is displayed with a list of the possible debuggers to use.
- Select a Visual Studio debugger.
This can either be a new instance of Visual Studio or one that is already running.
- Check
Manually choose the debugging engines.
- Click
Yes to start debugging.
- In the
Attach to Process dialog, ensure only
Micro Focus Native Debugger is selected under
Choose the types of code to debug.
- Click
OK.
The debugger attaches to the application that caused the error.
Note:
- To debug the application, the debugger must find the symbols file (the
.idy file). Depending on what application you debug the path to the symbols file may need to be manually defined.
- If you have the source files and the
.idy files, the source code is displayed at the line where the error occurred. If you do not have the required files, the name of the source file or the program where the error occurred is displayed.
- For 64-bit applications, your COBOL development system must be running and waiting for a debuggable attachment.