Type: Debugger
Describe the bug
I would like to develop UWP applications in VS Code using Cpptools and CMake. As it currently stands UWP apps throw an exception before reaching "main".
To Reproduce
Try building the CoreApp sample of Coderox and debug.
Additional context
Some of my trial and error has been captured in this issue on Coderox's repo.
For a launch scenario, there is work for VS Code C++ extension to launch the UWP app with debugging enabled.
See Automate UWP Launch for more information. This would also require it to be used with DebuggingEnabled.
However, if you manually deploy the the UWP app, you should be able to use the attach to process launch.json configuration to attach to the process.
@WardenGnaw Thank you for your answer.
std::cin for instance to halt the app until attach happens) and isn't the fastest edit-build-debug loop out there.int main()s in and of themselves), moreover they are written in different dialects (one is ATL, one is C++/CX) and my work starts with writing CMake scripts for compiling the snippets and reverse engineering the required surrounding code to make them actually build and run. It's just more tax.)_OnActivated function, which doesn't exist in UWP console apps. Does __argc and __argv macros or the pre-main UWP CRT parts take care of that? My launcher app has argc and argv but IApplicationActivationManager::ActivateApplication has a single LPCWSTR arguments argument which is documented as "A pointer to an optional, app-specific, argument string.". Am I to concatenate my argv list of strings here to pass it in from my Win32 main to the UWP main for debugging with CLI args?)_When you say "there is work for VS Code C++ extensions..." does that mean?
When you say "there is work for VS Code C++ extensions..." does that mean?
This would be scenario 1. There is a lot of work required to get C++ UWP deployment + debugging to working in VS Code. However, the main focus for the C++ debugger is cross platform scenario.
Unless there is a large demand for this feature to be in VS Code, we recommend using Visual Studio for UWP C++ debugging.
Please mark the top issue comment with a 馃憤 to vote for this feature.
When you say "there is work for VS Code C++ extensions..." does that mean?
This would be scenario 1. There is a lot of work required to get C++ UWP deployment + debugging to working in VS Code. However, the main focus for the C++ debugger is cross platform scenario.
Unless there is a large demand for this feature to be in VS Code, we recommend using Visual Studio for UWP C++ debugging.
Please mark the top issue comment with a 馃憤 to vote for this feature.
Our team are evaluating Flutter for Windows. Debug through the Dart part is quite a pleasure. Looking forward to debug C++ part as well.
Thumbed up
Most helpful comment
For a launch scenario, there is work for VS Code C++ extension to launch the UWP app with debugging enabled.
See Automate UWP Launch for more information. This would also require it to be used with DebuggingEnabled.
However, if you manually deploy the the UWP app, you should be able to use the attach to process
launch.jsonconfiguration to attach to the process.