FreeOrion

Forums for the FreeOrion project
It is currently Wed Dec 13, 2017 3:16 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon May 22, 2017 7:56 pm 
Offline
Dyson Forest

Joined: Tue Sep 30, 2014 10:01 am
Posts: 213
Hi,

I'm trying to unify the calculation of current production and future production (see http://www.freeorion.org/forum/viewtopic.php?f=9&t=10400&p=87660#p87660).

For that i tried to write an implementation using boost coroutine2. But that crashes and i don't have a clue how to debug/find out what goes wrong.

https://github.com/agrrr3/freeorion/tree/imperial-supply-stockpile-with-coroutine2

how would you approach that? how do you start freeorion with a debugger from msvc?

any help greatly appreciated thanks :)

_________________
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Last edited by Ophiuchus on Fri Jun 09, 2017 8:21 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon May 22, 2017 8:21 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12041
Location: Munich
Ophiuchus wrote:
how would you approach that? how do you start freeorion with a debugger from msvc?
It can run a program with the debugger already attached, but it's easier to run "freeorion" from a cmd.exe window and then attach the debugger to the running process using the GUI. Set a breakpoint, step through execution, look at the call stack, etc. Local and auto variable values are unreliable, though.


Top
 Profile  
 
PostPosted: Tue May 23, 2017 10:25 am 
Offline
Dyson Forest

Joined: Tue Sep 30, 2014 10:01 am
Posts: 213
Geoff the Medio wrote:
Ophiuchus wrote:
how would you approach that? how do you start freeorion with a debugger from msvc?
It can run a program with the debugger already attached, but it's easier to run "freeorion" from a cmd.exe window and then attach the debugger to the running process using the GUI. Set a breakpoint, step through execution, look at the call stack, etc. Local and auto variable values are unreliable, though.

Thanks, attaching to a running freeoriond works fine :)

_________________
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group