You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,10 @@ this package to execute our complex `dcp-client` library, which is written in JS
45
45
- JS TypedArrays coerce to Python TypeArrays
46
46
47
47
## Build Instructions
48
-
1. You will need the following installed (which can be done automatically by running ``./setup.sh``):
48
+
49
+
Read this if you want to build a local version.
50
+
51
+
1. You will need the following installed (which can be done automatically by running `./setup.sh`):
49
52
- cmake
50
53
- doxygen
51
54
- graphviz
@@ -59,11 +62,15 @@ this package to execute our complex `dcp-client` library, which is written in JS
59
62
60
63
2. Run `poetry install`. This command automatically compiles the project and installs the project as well as dependencies into the poetry virtualenv.
61
64
65
+
If you are using VSCode, you can just press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd> to [run build task](https://code.visualstudio.com/docs/editor/tasks#_custom-tasks) - We have [the `tasks.json` file configured for you](.vscode/tasks.json).
66
+
62
67
## Running tests
63
68
1. Compile the project
64
69
2. Install development dependencies: `poetry install --no-root --only=dev`
65
70
3. From the root directory, run `poetry run pytest ./tests/python`
66
71
72
+
For VSCode users, similar to the Build Task, we have a Test Task ready to use.
73
+
67
74
## Using the library
68
75
69
76
### Install from [PyPI](https://pypi.org/project/pythonmonkey/)
@@ -98,6 +105,14 @@ Type "help", "copyright", "credits" or "license" for more information.
98
105
99
106
Alternatively, you can build a `wheel` package by running `poetry build --format=wheel`, and install it by `pip install dist/*.whl`.
100
107
108
+
## Debugging Steps
109
+
110
+
1. [build the project locally](#build-instructions)
111
+
2. To use gdb, run `poetry run gdb python`.
112
+
See [Python Wiki: DebuggingWithGdb](https://wiki.python.org/moin/DebuggingWithGdb)
113
+
114
+
If you are using VSCode, it's more convenient to debug in [VSCode's built-in debugger](https://code.visualstudio.com/docs/editor/debugging). Simply press <kbd>F5</kbd> on an open Python to start debugging - We have [the `launch.json`file configured for you](.vscode/launch.json).
0 commit comments