Giter Site home page Giter Site logo

Comments (7)

joshtynjala avatar joshtynjala commented on May 13, 2024 1

Understood. I'll see what I can do.

from vscode-swf-debug.

joshtynjala avatar joshtynjala commented on May 13, 2024

750 milliseconds seems like an extremely long time for the step over command to complete. It makes me think that something has actually gone terribly wrong, and that this is, in fact, a fatal problem.

In other words, I don't think that increasing this timeout would actually make any difference for you...

from vscode-swf-debug.

TomFors avatar TomFors commented on May 13, 2024

Wifi debugging is just slow for mobile devices on a large codebase. I'm trying to replace FlashDevelopment and it's able to continue from that exception and I am able to step over code using it. I still see a exception dialog, but it's a non-fatal exception so it keeps going.

from vscode-swf-debug.

joshtynjala avatar joshtynjala commented on May 13, 2024

Are you certain that the exception is fatal? As best I can tell, the exception is being caught. However, I also manually print the stack trace to the console, so I could see how it might appear to be a crash.

Anyway, I just committed a change where some commands print the error message only (without the stack trace) when NoResponseException is thrown. If I'm right, and the debugger has not disconnected, then that will be a better user experience.

from vscode-swf-debug.

joshtynjala avatar joshtynjala commented on May 13, 2024

@TomFors I just published vscode-swf-debug v1.0.2. Please let me know if this version provides a better experience for you when a command times out. Thanks!

from vscode-swf-debug.

TomFors avatar TomFors commented on May 13, 2024

It seems better than previously, but there are still cases where I can get it to drop the connection while debugging. I think having a lot of information shown on the watch or variables window increases the likelihood of it occurring. Mashing the F10 buttons while debugging spits out these logs and then the mobile client hangs:

Exception in debugger: flash.tools.debugger.NotSuspendedException: Operation is only allowed when the Flash Player is suspended
	at flash.tools.debugger.concrete.PlayerSession.stepOverWorker(PlayerSession.java:2963)
	at flash.tools.debugger.concrete.PlayerSession.stepOver(PlayerSession.java:833)
	at flash.tools.debugger.threadsafe.ThreadSafeSession.stepOver(ThreadSafeSession.java:241)
	at com.as3mxml.vscode.SWFDebugSession.next(SWFDebugSession.java:988)
	at com.as3mxml.vscode.debug.DebugSession.dispatchRequest(DebugSession.java:114)
	at com.as3mxml.vscode.debug.protocol.ProtocolServer.dispatch(ProtocolServer.java:143)
	at com.as3mxml.vscode.debug.protocol.ProtocolServer.processData(ProtocolServer.java:102)
	at com.as3mxml.vscode.debug.protocol.ProtocolServer.start(ProtocolServer.java:81)
	at com.as3mxml.vscode.SWFDebug.main(SWFDebug.java:49)

Exception in debugger: flash.tools.debugger.NotSuspendedException: Operation is only allowed when the Flash Player is suspended
	at flash.tools.debugger.concrete.PlayerSession.stepOverWorker(PlayerSession.java:2963)
	at flash.tools.debugger.concrete.PlayerSession.stepOver(PlayerSession.java:833)
	at flash.tools.debugger.threadsafe.ThreadSafeSession.stepOver(ThreadSafeSession.java:241)
	at com.as3mxml.vscode.SWFDebugSession.next(SWFDebugSession.java:988)
	at com.as3mxml.vscode.debug.DebugSession.dispatchRequest(DebugSession.java:114)
	at com.as3mxml.vscode.debug.protocol.ProtocolServer.dispatch(ProtocolServer.java:143)
	at com.as3mxml.vscode.debug.protocol.ProtocolServer.processData(ProtocolServer.java:102)
	at com.as3mxml.vscode.debug.protocol.ProtocolServer.start(ProtocolServer.java:81)
	at com.as3mxml.vscode.SWFDebug.main(SWFDebug.java:49)

Timeout occurred while waiting for debugging response from Flash Player for 750 milliseconds

The debugger UI acts as if the code is running but the app isn't responding (because it's still in a debug break). Hitting the disconnect button resumes the app but disconnects the debugger connection.

from vscode-swf-debug.

joshtynjala avatar joshtynjala commented on May 13, 2024

Thanks. I should be able to tweak the behavior a bit to avoid the NotSuspendedExceptions.

from vscode-swf-debug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.