Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Debug configuration - HELP
Debug configuration - HELP [message #1819178] Thu, 09 January 2020 14:58 Go to next message
Mihnea-Costache Marin is currently offline Mihnea-Costache MarinFriend
Messages: 68
Registered: September 2019
Member
Hi,

So I am programmatically creating a debug configuration. Everything is good and every attribute is set as I wanted it to be, except for the stopping at main.

I am using this code: configuration.setAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, false);

And for some reason, the box is still checked.

Any advice? Thank you!
Re: Debug configuration - HELP [message #1819190 is a reply to message #1819178] Thu, 09 January 2020 16:59 Go to previous messageGo to next message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 260
Registered: April 2012
Senior Member
I think you should be asking this on the Eclipse CDT forum: https://www.eclipse.org/forums/index.php?t=thread&frm_id=80
Re: Debug configuration - HELP [message #1819197 is a reply to message #1819190] Thu, 09 January 2020 19:44 Go to previous messageGo to next message
Eclipse UserFriend
Set a conditional breakpoint and see where else this key is being used? I found the ordering of calls within the debug classes to be pretty confusing.

Brian.
Re: Debug configuration - HELP [message #1819334 is a reply to message #1819197] Mon, 13 January 2020 12:23 Go to previous messageGo to next message
Mihnea-Costache Marin is currently offline Mihnea-Costache MarinFriend
Messages: 68
Registered: September 2019
Member
I did not manage to find any calls. Do you have any other ideas?

Thank you!
Re: Debug configuration - HELP [message #1819369 is a reply to message #1819334] Tue, 14 January 2020 02:37 Go to previous messageGo to next message
Eclipse UserFriend
Where and when are you setting this value? It's hard to make suggestions without any details!
Re: Debug configuration - HELP [message #1819444 is a reply to message #1819369] Wed, 15 January 2020 13:37 Go to previous messageGo to next message
Mihnea-Costache Marin is currently offline Mihnea-Costache MarinFriend
Messages: 68
Registered: September 2019
Member
My plugin has its main objective the creation of a project with some files in it. I have a method that creates the debug configuration when a button is clicked.

Inside the method, I get the Launch manager, the type of launch (which because it is a debug remote application type, I use org.eclipse.cdt.launch.remoteApplicationLaunchType), I create a working copy and after that I just set attributes. Every attribute is set perfectly, except for stopping at main.

Thank you!
Re: Debug configuration - HELP [message #1819448 is a reply to message #1819444] Wed, 15 January 2020 14:54 Go to previous messageGo to next message
Eclipse UserFriend
I think you need to look at the logic in the CDT UI parts then? Taking a quick looking at the CDT source, CDT launch UIs use other guards to govern the use of the stop-in-main.

https://github.com/eclipse-cdt/cdt/blob/830bf8074c1ff22436c9ae54f2c8401ec3c418a9/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/CDebuggerTab.java#L355-L373

Re: Debug configuration - HELP [message #1819493 is a reply to message #1819448] Thu, 16 January 2020 09:33 Go to previous messageGo to next message
Mihnea-Costache Marin is currently offline Mihnea-Costache MarinFriend
Messages: 68
Registered: September 2019
Member
"You're a wizard, Harry!"

Thank you! Finally managed to solve this bloody problem.

Kind regards!
Re: Debug configuration - HELP [message #1819496 is a reply to message #1819448] Thu, 16 January 2020 09:58 Go to previous messageGo to next message
Mihnea-Costache Marin is currently offline Mihnea-Costache MarinFriend
Messages: 68
Registered: September 2019
Member
And since you are a wizard, I will try my luck.

Do you know if there exists a list or a way to find all of Eclipse preferences? I am trying to make the switch from Automatic GDB DSF mode in the debug configuration to manual.

Thank you!
Re: Debug configuration - HELP [message #1819513 is a reply to message #1819496] Thu, 16 January 2020 14:46 Go to previous message
Eclipse UserFriend
Sadly no. There's no declarative mechanism for defining preferences so code can create preferences at will. You can use tools like Oomph's preference recorder (https://www.eclipse.org/community/eclipse_newsletter/2014/november/article2.php provides a good overview) to at least capture what preferences are being set.

Brian.
Previous Topic:Deployment decisions for an exported RCP Product
Next Topic:Plugins load broken by org.eclipse.ui.decorator
Goto Forum:
  


Current Time: Wed Dec 11 09:22:07 GMT 2024

Powered by FUDForum. Page generated in 0.04493 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top