karansher / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 0 forks source link

Debugging for Mac arm #45

Closed iiiizuo closed 1 year ago

iiiizuo commented 1 year ago

Hi, I'm wondering how should I debug for future labs on mac as I'm using vscode text editor and cmake to compile. I run the code using the raster executable generated by the make command. I saw that windows users can use vscode ide's debugger. If i want to stick with vscode text editor, is there a way to use the debugger? If not, should i download the real vscode ide? Thanks.

abhimadan commented 1 year ago

You can use lldb, a command line debugger. It looks ugly but it has the same features as the Visual Studio debugger on Windows. Alternatively, if you're using VSCode, you can install a C++ plugin that provides nice features, including a wrapper for lldb: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools

iiiizuo commented 1 year ago

Thank you!

iiiizuo commented 1 year ago

Hi I tried the debugger with some modifications to the tasks.json (image 1), but it returned with the following error when i tried to debug the main.cpp. I'm not sure why this happened. Thank you!

Screen Shot 2022-09-17 at 9 32 14 PM image