# How to run and debug in visual studio 2019

**URL:** <https://root-forum.cern.ch/t/how-to-run-and-debug-in-visual-studio-2019/45325>\
**Category:** Newbie\
**Created:** [June 10, 2021, 3:06am UTC](https://root-forum.cern.ch/t/how-to-run-and-debug-in-visual-studio-2019/45325 "2021-06-10T03:06:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljxljx](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ljxljx/32/25653_2.png) [@ljxljx](https://root-forum.cern.ch/u/ljxljx)\
**Post date:** [June 10, 2021, 3:06am UTC](https://root-forum.cern.ch/t/how-to-run-and-debug-in-visual-studio-2019/45325/1 "2021-06-10T03:06:14Z")

</div>

Hello everyone, I am a novice on root, I successfully installed root using Binary distributions root\_v6.24.00.win32.vc16.debug.exe on Windows 10, and it works very well.

 ![图片](https://root-forum.cern.ch/uploads/default/original/3X/c/9/c924de1724ed87961497d534dbd609896d00e726.png)  
 ![图片](https://root-forum.cern.ch/uploads/default/original/3X/3/0/30486b1fa86176ff91ebf00431f548ada10e0334.png)

Now I have two questions. The first is how root runs in vs2019, and the second is that I found some Program Debug Database (.pdb) files in C:\root\_v6.24.00\bin, but I don’t know how to debug in vs2019

\_ROOT Version:v6.24.00  
\_Platform:windows 10  
_Compiler:_ Not Provided

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [June 10, 2021, 6:10am UTC](https://root-forum.cern.ch/t/how-to-run-and-debug-in-visual-studio-2019/45325/2 "2021-06-10T06:10:02Z")

</div>

> [@ljxljx](#):
>
> Now I have two questions. The first is how root runs in vs2019

```auto
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.4.6
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'

C:\Users\bellenot>build\release\bin\thisroot.bat

C:\Users\bellenot>devenv /debugexe root.exe

C:\Users\bellenot>

```

> [@ljxljx](#):
>
> and the second is that I found some Program Debug Database (.pdb) files in C:\root\_v6.24.00\bin, but I don’t know how to debug in vs2019

With the same command: `devenv /debugexe root.exe`  
That will open `Visual Studio` from where you can start debugging
