
The comments below are open, or you can find us on Twitter ( ) or via email at. We are actively improving this feature and are very interested in your feedback. Let us know your thoughts and whether there is anything you’d like to see added.
#Message about script debugger download#
Download the latest preview version of Visual Studio and give it a try. We hope this helps your CMake workflows in Visual Studio. If there’s anything else you’d like to see, please add to the suggestion ticket here.

You can also decide which types of errors and warnings you’d like the debugger you automatically break on. Using these breakpoints, you can step into, over, and out of them, as well as pause or continue the executing scope like a normal debugger.Īs you can see above, you can use the call stack in the CMake debugger to see filenames and lines associated with your debugging process. You can set breakpoints based on file names, line numbers, or when CMake errors and warnings are triggered in your CMakeLists.txt file by clicking in the margin to the left of the line numbers like normally or by using the Breakpoint and Exception Settings. When CMake cache generation on your project fails, a “Debug” link will also be available to start a CMake debugg er session in the Solution Explorer. To initiate a CMake debugging session, you can select “Configure with CMake Debugger” from the context menu when right-clicking on your CMakeLists.txt file in the Solution Explorer or from the “Project” dropdown menu. We are excited to announce that a preview of the CMake debugger is now available to debug your CMake scripts and CMakeLists.txt file for any CMake project in Visual Studio 17.6 Preview 1. We will be contributing this work back upstream (targeting the 3.27 release) so that the developer community can have it and work to improve it together, by adding new features and support f or additional DAP capabilities. I was hoping it'd let you see the script as well.The VS CMake team has been working in close collaboration with Kitware on developing a debugger for CMake scripts in the Visual Studio IDE ( s ee this open Kitware issue for more details ). (yes, I know anybody can edit it - that's the point of sharing it!) If you want to see the todo checklist I made, you can check it out here Any info I needed from the spreadsheet, like which cell was selected, etc, I had to figure out manually.Īnyways, long answer, but I figured it out eventually. However, I did have to stop using the event argument that gets passed into the onEdit function - you can't simulate that by doing Run->onEdit. All I did was make sure the cell that I wanted it to treat as "edited" was selected, then in Script Editor, I would go to Run->onEdit.

To simulate having edited a cell, I did end up having to do something in the actual spreadsheet though. Debugging the onEdit trigger was the hardest one to figure out, because I kept thinking that if I set a breakpoint in my onEdit function, opened the spreadsheet, edited a cell, that my breakpoint would be triggered.

The only triggers I installed for that script were the onOpen and onEdit triggers. The script I was trying to get working had to do with spreadsheets - I made a spreadsheet todo-checklist type thing that sorted items by priorities and such. Again, that will only show you anything that was logged from the last function you ran from inside Script Editor. Logger.log will either send you an email (eventually) of errors that have happened in your scripts, or, if you are running things from the Script Editor, you can view the log from the last run function by going to View->Logs (still in script editor). Stackdriver Logging is the preferred method of logging now.
