loentar / ngrest

Fast and easy C++ RESTful WebServices framework
Apache License 2.0
465 stars 94 forks source link

Debug in IDE #66

Closed HenryQW closed 5 years ago

HenryQW commented 5 years ago

Hi @loentar,

I'm relatively new to c++, can you provide the steps on how to debug a project created by ngrest? Preferably in VS Code or Qt Creator.

Thanks!

loentar commented 5 years ago
  1. Open your project in QtCreator, selecting CMakeLists.txt.
  2. Select Debug config.
  3. Build it.
  4. Select projects -> Build, Copy Build Directory
  5. Select Run, Set

Executable:

Command line arguments: -s <COPIED_DIR>/deploy/share/ngrest/services

  1. Set breakpoints, Run project