Comments (5)
Are you adding the breakpoint in the constructor of the main class? Last time I tried that, it didn't work for some reason. I suspect that the debugger hasn't fully connected yet. Try adding a breakpoint in an event listener somewhere, and you should see a difference.
Also, when using Chrome, make sure to exit the browser entirely and let VSCode launch it. The debugger won't work unless special command line options are passed in, so if it's already running, it won't work.
from vscode-as3mxml.
humm, I set an on click event and the breakpoint worked but I cant get it to stop on page load.
I tried with: window.addEventListener("load", onLoad, true)
The onLoad function is called but again the breakpoint fails. Do you have an idea how one could set a breakpoint in the constructor to break on page load?
from vscode-as3mxml.
I'm not sure. Like I said, it seems like VSCode's debugger might not be fully connected until after page load or something.
If you open Chrome's developer tools directly, and use its built-in debugger, a breakpoint in the constructor will work correctly, so it seems to be a VSCode issue.
from vscode-as3mxml.
thanks Josh, I got it working by setting an interval, like so:
interval = setInterval(onLoad,1000);
for debugging this is enough.
from vscode-as3mxml.
I found that if you add a debugger
statement to your HTML page before you instantiate the main class constructor, the VSCode debugger will pause there as if there were a breakpoint. If you continue the debugging session, your breakpoints will work.
I added a more detailed description about this to the documentation:
from vscode-as3mxml.
Related Issues (20)
- AIR 50.2 - Drag and Drop - Windows 11 HOT 1
- ArrayIndexOutOfBoundsException and NegativeArraySizeException problems on functions HOT 6
- '(' is not allowed here for property names inside an Object literal HOT 2
- Version 1.20.0 fails to compile if path to main class contains spaces (Windows) HOT 28
- AVM2 special operations not detected HOT 1
- Showing numbers defined as hex in hexadecimal format, not just decimal HOT 4
- Completion: Ordering improvement for fully present terms HOT 2
- Go to definition and autocompletion doesn't work with <fx:Script source="Myfile.as"/> HOT 1
- Symbol renaming error in the latest release HOT 1
- Support tab character after @param
- <mx:DataGrid and gestureTwoFingerTap HOT 4
- Build task failing because Adobe Animate not found HOT 3
- Support to Flash Builder old SDKs were dropped? HOT 1
- Completion: after CSS namespace tag, suggest mx and spark namespaces in Flex projects
- Option to "ACTIONSCRIPT SOURCE PATH" always visible HOT 4
- Context menu for clean, compile debug and compile release
- Need a feature to filter warnings for files in a specific path
- "Find All References" never returns any results HOT 10
- asformat: Bug in switch command within loop HOT 1
- The debugger affect to the code HOT 2
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-as3mxml.