Skip to main content
Inspiring
June 18, 2011
Question

Debug session terminated.

  • June 18, 2011
  • 1 reply
  • 1485 views

Hello everyone,

Does anyone have any general idea on what can cause the debug session to terminate?

I am debugging via usb in flash cs5.5 and it seems to "Debug session terminated"  within 30 to 45 seconds of playing my game.

The game works fine though.

I feel like its some error or mistake i could be causing, perhaps it terminates instead of reading it out to me?

I made a new test file with just a trace statement and that does not terminate.

In the test file I am able to perposely call null objects and throw errors, it reads the errors as expected and does not terminate.

The only google search i found was this

http://forums.adobe.com/thread/832983?tstart=1

"The solution to this problem is you must take your bitmap and remove its bitmapData with the dispose method when you are not using it..."

The only thing i am disposing in the first minute is an intro screen bitmap, but i am disposing of it properly as the poster suggested. Assuming this can be related to memory, i leave the into graphic up on the screen visible during the game, and it still eventually terminates anyway. So nothing should be changing related to memory or GC at the seemingly random time of termination.

so before i go crazy... anyone know of other circumstances which could cause the debug session to terminate?

I will mention the game uses GPU mode and is heavy on memory! but it plays very nice and smooth.

This topic has been closed for replies.

1 reply

October 28, 2014

I have something similar. Everything was fine, but since one day the debug version of app started terminating when I use breakpoint. If I just run it under the debugger it runs ok, but if I setup a breakpoint the app stopped. It's really annoying thing cause it makes things slow.