# Using http\_daemon with --debug

**URL:** <https://swi-prolog.discourse.group/t/using-http-daemon-with-debug/8999>\
**Category:** General\
**Tags:** bug\
**Created:** [May 12, 2025, 4:46pm UTC](https://swi-prolog.discourse.group/t/using-http-daemon-with-debug/8999 "2025-05-12T16:46:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdiestel](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/wdiestel/32/22_2.png) [@wdiestel](https://swi-prolog.discourse.group/u/wdiestel)\
**Post date:** [May 12, 2025, 4:46pm UTC](https://swi-prolog.discourse.group/t/using-http-daemon-with-debug/8999/1 "2025-05-12T16:46:18Z")

</div>

Not sure if this is a minor bug in the documentation or the implementation:  
The docs about http\_daemon say:

```prolog
the argument to `--debug`= is a Prolog term

```

but if I use it with single quotes I get an error:

```prolog
atom_to_term/3: Type error: `text' expected, found `http(request)' (a compound)

```

Single quotes inside double quotes work, but deviates from the documentation:

```prolog
--debug="'http(request)'"

```

Kinde regards,  
Wolfram
