Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Nov 16, 2023
1 parent 58126fd commit 42edb05
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ jobs:
name: Set CGO flags
run: |
echo "CGO_CFLAGS=$(php-config --includes)" >> "$GITHUB_ENV"
- run: |
sudo apt install gdb
mkdir -p /home/runner/.config/gdb/
printf "set auto-load safe-path /\nhandle SIG34 nostop noprint pass" > /home/runner/.config/gdb/gdbinit
- uses: mxschmitt/action-tmate@v3

-
name: Build
run: go build
Expand Down
13 changes: 7 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,16 @@ docker buildx bake -f docker-bake.hcl --pull --no-cache --push
```
3. Enable `tmate` to connect to the container
```patch
- name: Set CGO flags
-
name: Set CGO flags
run: echo "CGO_CFLAGS=$(php-config --includes)" >> "$GITHUB_ENV"
+ - run: |
sudo apt install gdb
+ -
+ run: |
+ sudo apt install gdb
+ mkdir -p /home/runner/.config/gdb/
+ printf "set auto-load safe-path /\nhandle SIG34 nostop noprint pass" > /home/runner/.config/gdb/gdbinit
+ - uses: mxschmitt/action-tmate@v3
+ env:
+ GOFLAGS: "-w -gcflags=all=-N -gcflags=all=-l"
+ -
+ uses: mxschmitt/action-tmate@v3
```
4. Connect to the container
5. Open `frankenphp.go`
Expand Down

0 comments on commit 42edb05

Please sign in to comment.