Debugging with Visual Studio
For complex functions, you can attach Visual Studio to step through your code with full debugging support.
Using the Attach Debugger Toggle
Toggle the Attach Debugger button on the toolbar.
HL7Spy generates a temporary
.csprojalongside the compiled assembly, allowing Visual Studio to map source files to the running code.Open the generated project in Visual Studio and attach to the HL7Spy process.
Set breakpoints in Visual Studio, then press F5 in HL7Spy to run your function. Execution will pause at your breakpoints.
You can modify the source code within Visual Studio and the changes will be picked up by HL7Spy.
Using Break()
You can also call Break() in your code to trigger a debugger break at any specific point:
If Visual Studio is already attached to the HL7Spy.exe process, execution pauses immediately. If not, the system debugger-attach dialog appears.