Comments (13)
it look like it does not run properly on my machine...
That's a little vague - just works out-of-the-box for me - what problems are you having?
from ahkpp.
cannot debug anything, so I would like to compare settings
from ahkpp.
Never had to create a launch.json or settings.json. What method are you using to launch the debugger?
from ahkpp.
when I start debug
call stack is empty
I can tell that the extension is installed
from ahkpp.
use vscode-autohotkey-debug by zero-plusplus
Debugging support for AutoHotkey(includes H) v1 and v2
https://marketplace.visualstudio.com/items?itemName=zero-plusplus.vscode-autohotkey-debug
from ahkpp.
OutputDebug > If the script's process has no debugger, the system debugger displays the string. If the system debugger is not active, this command has no effect.
https://www.autohotkey.com/docs/commands/OutputDebug.htm
How about trying a simple
text = text
MsgBox, % text
from ahkpp.
How about trying a simple
text = text MsgBox, % text
debug script seems not to work
pressing on restart makes appear the Debugger but MsgBox appears as well, so scrip was not stopped at the breakpoint
from ahkpp.
Not sure what to advise you other than to suggest there could be a conflict with another extension.
Perhaps try disabling all other extensions and just re-enable ahk++, or try the Start Extension Bisect
from the same menu.
If there is no obvious conflict, try the debugger as suggested by Mr. Doge above - haven't needed to myself. ¯\(ツ)/¯
from ahkpp.
back from vacation, have just tried disabling all other, still the same
added https://marketplace.visualstudio.com/items?itemName=zero-plusplus.vscode-autohotkey-debug makes it working but why?
This is deprecated, the new recommended way to configure your default shell is by creating a terminal profile in
#terminal.integrated.profiles.windows#
and setting its profile name as the default in#terminal.integrated.defaultProfile.windows#
. This will currently take priority over the new profiles settings but that will change in the future.
from ahkpp.
Maybe this might help - think I remember having to do this myself when I first installed VSCode.
from ahkpp.
may I ask what you did in regard to AH?
This refers to PowerShell, CMD. Trying to do the right thing for AH would like trial&error for me.
from ahkpp.
Getting back to this.
"...makes it working but why?". The vscode-autohotkey-debug extension takes precedence over AKK++ inbuilt debugger - I've never had to use the former, so I have no answer.
On inspecting my settings.json, I can see no evidence that I made any changes to it as shown in the answer to the stackoverflow post that I linked to - all I did was just search for the text that in the image that you posted.
I do seem to remember following a series of on-screen prompts to do with the terminal and powershell when I initially installed VSCode, but this would have been before installing AHK++.
If you are only seeing that deprecation warning when you have an ahk script open in the editor - I really don't know why.
It's a shame that @mark-wiemer seems too busy to offer advice at the moment.
from ahkpp.
...only 9 months late! Closing this as @PackElend seems to have resolved the issue. Do let me know if there is something else I can help with, but generally your best bet for debug support would be with the debugger suggested in the comments.
from ahkpp.
Related Issues (20)
- Flip-flopping Schrödinger's cat HOT 3
- How to get intelisense suggestions for functions stored in '.\Documents\lib' ? HOT 2
- AHK V1 files language mode is always set to `AutoHotkeyV2` HOT 9
- Parser stops working on AHK v1.1 files HOT 4
- Extension forgot AHK location HOT 4
- "Go to definition" using Ctrl + Click jumps to another file opened in editor / or doesn't jump to definition at all within the same file if the file is very long ~10k lines HOT 1
- Wrong indentation when moving line of code out of if-statement HOT 1
- Wrong indentation: press Enter after condition-block in If-statement
- AHK++ is not activating. HOT 11
- "Run" command thinks a V1 script is V2. HOT 4
- Formatter replaces multiple spaces with a single space inside a string HOT 1
- Wrong indentation on copy-paste HOT 6
- How to format code There is no formatter for 'ahk2' files installed. HOT 2
- No format intelicence or formating or colors HOT 4
- Language Switch problems HOT 2
- format code feature changes the number of spaces in a constant string HOT 1
- Debugger takes keyboard focus from active window HOT 1
- The Open AutoHotkey Help command is failing HOT 2
- allow rename variables HOT 1
- Availability as standalone LSP 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 ahkpp.