feat: ACNA-2785 - generate VS Code config for an App Builder Project#14
feat: ACNA-2785 - generate VS Code config for an App Builder Project#14
Conversation
…en a file changes
…g, add bundle.run step before watch
|
Why do we need Also, while I feel generating the config via an init command is better than during |
This is true. I only had "IDE Debugging" on my mind, and excluded "console.log" debugging. I can remove the affected changes. I also considered the "old" way of
It is editor agnostic, the restriction was based on not confusing users used to the old two-step process (the changes will be reverted). |
|
while being able to run dev in other terminals makes sense, i still like the idea of only running certain things given the user's environment - i.e. maybe we check to see if the user is running |
good point. they will need to run it in a VS Code terminal for this to work. Still some friction, versus us perhaps just running it after a Elaborating further to my reply to Moritz - you can run |
# Conflicts: # package.json
The CLI generates vscode-specific configuration, we always did this, it's fine, just meant to open up for future discussion that we could provide the debugger configuration via an extension as well.
interesting, would it be possible to do both? support run from terminal to have a local dev env and 1-step debugging (run from vscode)? |
I think it will be confusing and in my opinion not a good developer experience. Why would they run |
|
I think we are speaking about the same thing unless I am misunderstanding :D. I meant:
|
yes, both scenarios are possible with this, thus we are in agreement |
purplecabbage
left a comment
There was a problem hiding this comment.
I am not sure the bundlePort vs serverPort logic belongs in this pr. This seems related to frontend hot reloading.
|
removed |
|
The original intent of this PR has changed. This has turned out to be just prep for #15 - and that PR has all of this PR's commits anyway. Closing. |
Description:
To debug, you will need to use Visual Studio Code, but you will not have the launch configuration yet in your project. Thus we need a new command to bootstrap your project:
aio app dev init.aio app devdebugging does not work without it being in a VS Code context, so we restrict it to that.Introduces a newaio app dev initcommand - will install the .vscode/launch.json configuration so users can debug in Visual Studio Code (perhaps this can be run afteraio app init?)Modifiesaio app devso it can only run in the Visual Studio Code context, and not in the regular terminalHow Has This Been Tested?
aio app dev initrunaio app devin the Terminal (should error out)aio app dev initin the Terminal (should install the .vscode launch config)Test Steps
App Builder: debug actionsconfiguration in theVS Code Debugtab. Modify anyaction code, put a breakpoint in it. Note that the breakpoint will not be "active" until the action is actually hit by calling the action url, only after it is called will the script be loaded, and the execution will stop at the breakpointApp Builder: debug full stackconfiguration in theVS Code Debugtab. Modify anystatic asset code(javascript):VS Code Debugtab, find theLoaded Scriptssection.Browser Debug: <your app name>.__parcel_source_rootDev Experience Improvements (Future?)
actioncodeweb-srccode directly instead of the way outlined aboveTypes of changes
Checklist: