ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 12-21-2011
Hao Zhou's Avatar
Hao Zhou Hao Zhou is offline
Flexsim User
 
Join Date: Sep 2010
Location: Long Beach
Posts: 66
Downloads: 56
Uploads: 0
Thanks: 78
Thanked 43 Times in 25 Posts
Rep Power: 146
Hao Zhou will become famous soon enoughHao Zhou will become famous soon enough
Default How to set up C++ debugging in Visual Studio for Flexsim5

I would like to setup debugging procedure in Visual Studio in the way as showed in the thread below:

http://www.flexsim.com/community/for...read.php?t=444

But I cannot find flexsimexeB.txt in Flexsim5's install folder.
Thank you very much for your help!
  #2  
Old 12-22-2011
Esther Bennett Esther Bennett is offline
Flexsim User
 
Join Date: Mar 2008
Posts: 115
Downloads: 27
Uploads: 0
Thanks: 103
Thanked 116 Times in 50 Posts
Rep Power: 271
Esther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to all
Default

Hello Hao Zhou,

I am not sure if it is (still) that complicated. If you already have the .dll file working with flexsim, I think it is sufficient to make sure that c++ generates debug information:
  1. Open the project's Property Pages dialog box.
  2. Click the Linker folder.
  3. Click the Debug property page.
  4. Modify the Generate Debug Info property. (to Yes)
Now after you have build the dll you can attach the program to flexsim
  1. Tools>Attach to process...
  2. select flexsim.exe
If you add a breakpoint and run the model, c++ will pop up as soon as it reaches the breakpoint. You can now step through the dll with F10.


Hope this helps you debugging your dll.


Esther
The Following 3 Users Say Thank You to Esther Bennett For This Useful Post:
RalfGruber (12-22-2011)
  #3  
Old 12-23-2011
Hao Zhou's Avatar
Hao Zhou Hao Zhou is offline
Flexsim User
 
Join Date: Sep 2010
Location: Long Beach
Posts: 66
Downloads: 56
Uploads: 0
Thanks: 78
Thanked 43 Times in 25 Posts
Rep Power: 146
Hao Zhou will become famous soon enoughHao Zhou will become famous soon enough
Default

Hi Esther,

Thanks for your reply. I tried as you said, but it does not work.
But I did in a similar way as you. Now, it works well.
  1. Open the project's Property Pages dialog box.
  2. Click the Linker folder.
  3. Click the Debugging property page.
  4. Modify the Generate Debug Info property. (to Yes)
  5. again, Property Pages --> configuration properities --> Debugging --> command
  6. browse command to flexsim.exe.
Merry Christmas!
The Following 2 Users Say Thank You to Hao Zhou For This Useful Post:
Lars-Olof Leven (12-24-2011)


Thread Thread Starter Forum Replies Last Post
How to set up C++ debugging in Visual Studio Anthony Johnson Wiki Articles 8 12-22-2011 11:20 AM
Visual Studio Express 2008 Nico Zahn Installation 2 07-01-2008 04:19 AM
Configure Flexsim 4.01 with Visual Studio Express susanne Installation 1 03-31-2008 04:28 AM
Visual Studio 2005 or 2008? Lars-Olof Leven Q&A 16 01-02-2008 12:10 PM
Visual Studio 2005/VISTA David Chan Q&A 1 01-01-2008 03:51 AM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.