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 04-16-2015
Axel Kohonen
Guest
 
Posts: n/a
Downloads: 22
Uploads: 0
Default Can you force quit/exit the debugger?

Hi,

When you enter a breakpoint in a code block in Flexsim and then run the model it naturally stops there. But when you want to exit your say 65000 iterations for loop that goes through an Excel file then there does not seem to be a command in the debugger that jumps out of the loop, nor can I find a command that would stop debugging.

Removing the breakpoint and pressing continue sometimes works, but not always. When it does not work Flexsim freezes in some eternal loop or debug mode and the only thing that helps is quitting Flexsim and restarting it.

I am using Flexsim 7.5.2.

Any ideas on how to evade this or have I missed something?

Thanks!
Axel
  #2  
Old 04-20-2015
Ben Wilson's Avatar
Ben Wilson Ben Wilson is offline
Flexsim Consultant, Super Moderator
 
Join Date: Jul 2007
Posts: 82
Downloads: 352
Uploads: 6
Thanks: 30
Thanked 159 Times in 43 Posts
Rep Power: 256
Ben Wilson is a glorious beacon of lightBen Wilson is a glorious beacon of lightBen Wilson is a glorious beacon of lightBen Wilson is a glorious beacon of lightBen Wilson is a glorious beacon of light
Default

1) Create a new breakpoint after the loop
2) Remove the breakpoint inside the loop
3) Press the Continue button

If this doesn't work, then there must be some other issue - moving breakpoints shouldn't crash FlexSim. Does the code run fine without any breakpoints?

I'm guessing by the fact that you're stepping through the code that there must be some issue that you're looking for. Whatever problem you're looking for in the code may be at the heart of the instabilities you're dealing with.

We are happy to help in finding the problem. Feel free to send your model in for our technical support group to check out: https://www.flexsim.com/support/

Thanks!
The Following User Says Thank You to Ben Wilson For This Useful Post:
Axel Kohonen (04-21-2015)
  #3  
Old 04-21-2015
Axel Kohonen
Guest
 
Posts: n/a
Downloads: 22
Uploads: 0
Default

Hi Ben,

Thank you for your help! Your suggestion should do the job as long as there are no other problems in the code. I did not have other problems I think, but I did not find a way to exit the debugging if moving the breakpoint did not work. Might have been an eternal loop at the end of the 65.000 iterations I guess. I did not want to step all the way there to check it

In case of ending up in an eternal loop is there any command that ends it? I get Ctrl + Pause/Break to work for ending debugging when it has stopped at a breakpoint or is in the middle of debugging otherwise.

Thank you!
Axel

Tags
debugging, stop


Thread Thread Starter Forum Replies Last Post
How to force a combiner task John Behrends Q&A 1 06-27-2012 09:06 AM
Exit Chassis Transaction Jamie Santa Ana Container Terminal (CT) Library 1 09-21-2009 11:01 AM
exit after certain time Raul Paz Gripes and Goodies 6 07-20-2009 08:56 AM
Flexsim Debugger Anthony Johnson Gripes and Goodies 6 02-06-2009 05:37 AM
On Exit (Lead Time) Gavin Douglas Q&A 5 07-30-2008 01:51 PM


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.