You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
374 B
16 lines
374 B
2 months ago
|
## Enabling debugging
|
||
|
```
|
||
|
// enable debugging messages
|
||
|
phpQuery::$debug = 1;
|
||
|
// enable extensive debugging messages
|
||
|
// used to debug document loading errors from phpQuery::newDocument()
|
||
|
phpQuery::$debug = 2;
|
||
|
```
|
||
|
## Debugging methods
|
||
|
```
|
||
|
// debug inside chain
|
||
|
pq('.foo')->dump()->...;
|
||
|
pq('.foo')->dumpWhois()->...;
|
||
|
pq('.foo')->dumpTree()->...;
|
||
|
pq('.foo')->dumpDie()->...;
|
||
|
```
|