GithubHelp home page GithubHelp logo

Comments (13)

fade2gray avatar fade2gray commented on June 1, 2024

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.

PackElend avatar PackElend commented on June 1, 2024

cannot debug anything, so I would like to compare settings

from ahkpp.

fade2gray avatar fade2gray commented on June 1, 2024

Never had to create a launch.json or settings.json. What method are you using to launch the debugger?

from ahkpp.

PackElend avatar PackElend commented on June 1, 2024

when I start debug
image
call stack is empty
image

I can tell that the extension is installed
image

and it calls AutoHotkey
image

from ahkpp.

FuPeiJiang avatar FuPeiJiang commented on June 1, 2024

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.

fade2gray avatar fade2gray commented on June 1, 2024

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.

PackElend avatar PackElend commented on June 1, 2024

How about trying a simple

text = text
MsgBox, % text

run script works
image

debug script seems not to work
image

pressing on restart makes appear the Debugger but MsgBox appears as well, so scrip was not stopped at the breakpoint
image

from ahkpp.

fade2gray avatar fade2gray commented on June 1, 2024

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. ¯\(ツ)

DisableExts

from ahkpp.

PackElend avatar PackElend commented on June 1, 2024

back from vacation, have just tried disabling all other, still the same

image
image


added https://marketplace.visualstudio.com/items?itemName=zero-plusplus.vscode-autohotkey-debug makes it working but why?

Moreover, I see (now):
image

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.

fade2gray avatar fade2gray commented on June 1, 2024

Maybe this might help - think I remember having to do this myself when I first installed VSCode.

https://stackoverflow.com/questions/67601161/the-new-way-to-configure-default-shell-and-argument-commands-in-vscode

from ahkpp.

PackElend avatar PackElend commented on June 1, 2024

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.

fade2gray avatar fade2gray commented on June 1, 2024

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.

mark-wiemer avatar mark-wiemer commented on June 1, 2024

...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)

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.