When you use
Wait for debuggable attachment the debugger waits for the program to start in a separate process before attempting to attach to it.
Note:
- The following applies to native code only.
To enable the option:
- In the IDE, click
Project >
MyProject Properties and click the
Debug tab.
- Check
Wait for debuggable attachment and choose an appropriate option from the corresponding list.
- Save your changes.
- Click
Debug > Start Debugging.
The IDE now waits for and then attaches to the next program that calls CBL_DEBUGBREAK.
- Start a program or a service.
The debugger will attach to it as soon as it encounters a CBL_DEBUGBREAK call.