Home > Software design >  How can I debug chromium in visual studio 2019?
How can I debug chromium in visual studio 2019?

Time:10-08

Visual studio crashes while building all.sln. I have all the source files. Chrome.exe is also working fine. But, It's been a week, I am not able to build chromium from Visual Studio. It shows this error message.

Unable to start program* allocator_clang_newlib_x64. The system can not find the file specified.

CodePudding user response:

The all.sln is a very big solution with all the Chromium source code as Visual C projects. It will make Visual Studio slow even on high end machine. So the recommended way to debug your Chromium fork is via a standalone Visual Studio project. You can follow the steps below:

  1. Open Visual Studio command prompt
  2. Navigate to your Chromium's src folder from that CLI
  3. Open Visual Studio to debug your Chromium executable by typing the following devenv /DEBUGEXE "out\YourBuildFolder\chrome.exe"
  4. Press F5 to start debugging your source code.

Tip: If you want to start debugging by stopping at the entry point, on Solution Explorer pane, right click that project and choose Debug -> Step into new instance from the context menu.

You can use all.sln to edit the source code and yes you have to compile it again for the changes to take effect.

  • Related