[Qt-creator] Adding debug support

filippocucchetto at gmail.com filippocucchetto at gmail.com
Sat Jun 13 10:18:05 CEST 2015


Hi,
i finally solved it by adding

addExtraAspect(new ProjectExplorer::LocalEnvironmentAspect(this));

in the constructor of my subclass of the 
ProjectExplorer::LocalApplicationRunConfiguration

thank you 

F.


On Friday, June 12, 2015 11:05:50 PM Filippo Cucchetto wrote:
> i took the time for building QtCreator in debug mode and debugged the issue:
> - In the executeRunConfiguration function the runControlFactory->create
> return nullptr (0) and shows the error messagebox
> - It returns nullptr because DebuggerRunControlFactory::create fails in the
> fillParametersFromLocalRunConfiguration function call and sp.startMode ==
> NoStartMode
> - fillParametersFromLocalRunConfiguration fails because this assert fails
> QTC_ASSERT(environmentAspect, return false)
> 
> That's the stack trace...now i've to understand why
> runConfig->extraAspect<EnvironmentAspect>(); returns null.
> Probably i messed up something in the implementation of the classes that
> handle the run configuration.
> 
> Thank you,
> F.
> 
> 2015-06-10 13:31 GMT+02:00 Filippo Cucchetto <filippocucchetto at gmail.com>:
> > Hi Adre,
> > thank you for your kind answer. I don't know if you'll have the time to to
> > try it, however this is the repo
> > https://github.com/filcuc/NimQtCreatorPlugin
> > It should compile fine. I'll follow your advice by adding the
> > setMarksVisible(true) and then i'll recompile QtCreator in debug mode.
> > Right know
> > i've compiled only my Plugin in debug and so that's the reason i can't
> > give you more information about the "Unknown error message".
> > 
> > F.
> > 
> > 2015-06-10 13:02 GMT+02:00 Poenitz Andre <Andre.Poenitz at theqtcompany.com>:
> >>  Hi Filippo.
> >>  
> >>  
> >>  One step forward may be to use
> >>  
> >>      setMarksVisible(true);
> >> 
> >> in the NimEditorFactory to get the column for bookmarks and breakpoints.
> >> 
> >> To help with the "remaing debugger related" questions I would probably
> >> need to I get Nim up and running locally...
> >> 
> >> Best regards,
> >> Andre'
> > 
> > --
> > Filippo Cucchetto




More information about the Qt-creator mailing list