Comments (7)
Understood. I'll see what I can do.
from vscode-swf-debug.
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.
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.
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.
@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.
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.
Thanks. I should be able to tweak the behavior a bit to avoid the NotSuspendedExceptions.
from vscode-swf-debug.
Related Issues (20)
- Set environment variables when launching Adobe AIR app HOT 5
- Debugging: display value in tooltip when hovering over variables HOT 4
- launch.json: support platform "ios_simulator" (like ios and "android") to install on Apple's simulator in the iOS SDK
- error while processing request 'setBreakpoints'
- Using multi-root workspace with launch configurations in .code-workspace instead of launch.json, Launch SWF fails: `Cannot read property 'uri' of undefined` HOT 2
- Debugger error when adding breakpoints to SWC component HOT 11
- Launch on Android device fails HOT 4
- Cannot add specific ANE in sub-asconfig HOT 1
- Cannot debug on iOS Simulator HOT 9
- How to debug a swc library? HOT 1
- Launch task "attach android" fails HOT 2
- preLaunchTask > task not found
- Array order in debug mode not ordered correctly by number
- Support AIR ADT simulator argument in launch.json
- Cannot inspect local constants at runtime HOT 42
- Unable to access non-local, non-public members from breakpoint inside function closure HOT 2
- Thread Session Suspends few seconds after hitting any breakpoint debugging on Android Device
- Cannot edit Number variable with a value of two or more decimals in the fractional part HOT 2
- error while processing request 'evaluate' HOT 1
- Wrong line highlighting during debugging HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-swf-debug.