Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Visual Studio or Eclipse is not launched when encountering CBL_DEBUGBREAK from a Windows Service process

Visual Studio or Eclipse is not launched when encountering CBL_DEBUGBREAK from a Windows Service process

Problem:

When connecting to a remote machine using RDP (Remote Desktop Protocol) and launching a Windows Service which contains a CBL_DEBUGBREAK, Visual Cobol for Visual Studio or Visual Cobol for Eclipse does not detect the CBL_DEBUGBREAK.

Resolution:

When the service encounters the CBL_DEBUGBREAK, it has to interact with the desktop to display the 'Do you want to debug' prompt. It does this by getting the user currently logged into the computers console, and interacting with that console.

The remote desktop uses a separate session which is not the console window so the prompt is not visible.

This is a limitation of using RDP to access the remote machine and there are 2 alternatives to get the CBL_DEBUGBREAK to work:

For Visual Studio:

In the Visual Studio menu, go to Debug > Start Debugging.

This will then wait for you to run the Service and the application will attach as soon as it encounters the CBL_ DEBUGBREAK.

For Eclipse:

Start Eclipse as administrator and start a "COBOL Wait for Application Attachment" debug session.

When CBL_DEBUGBREAK or CBL_DEBUG_START is executed, Eclipse is launched and starts debugging the application.

 

Alternatively, using different remote desktop software such as RADMIN, which does not use a separate session, should get the correct behavior by just launching the Windows Service.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2014-11-14 14:41
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.