| ... | ... | @@ -37,19 +37,12 @@ Of course you need to compile your aidge modules before debugging. It is require |
|
|
|
**For C++**, use ``DCMAKE_BUILD_TYPE=Debug`` option.
|
|
|
|
|
|
|
|
|
|
|
|
**For Python**, you need to update the ``setup.py`` script and change this line:
|
|
|
|
**For Python**, you need to set the env variable ``AIDGE_BUILD_TYPE`` to ``Debug``:
|
|
|
|
|
|
|
|
```python
|
|
|
|
self.spawn(['cmake', str(cwd), param_py, '-DTEST=OFF', f'-DCMAKE_INSTALL_PREFIX:PATH={install_path}'])
|
|
|
|
```
|
|
|
|
> export AIDGE_BUILD_TYPE=Debug
|
|
|
|
|
|
|
|
To this:
|
|
|
|
:warning: It is important to clean your build file to recompile in debug!
|
|
|
|
|
|
|
|
```python
|
|
|
|
self.spawn(['cmake', str(cwd), param_py, '-DTEST=OFF', f'-DCMAKE_INSTALL_PREFIX:PATH={install_path}', 'DCMAKE_BUILD_TYPE=Debug'])
|
|
|
|
```
|
|
|
|
And then install using:
|
|
|
|
> pip install ${PATH_TO_PROJECT}
|
|
|
|
|
|
|
|
### The launch.json file
|
|
|
|
|
| ... | ... | |