Skip to content

Commit 516bb6c

Browse files
committed
documentation update
1 parent 1a1d461 commit 516bb6c

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ Perl Executing Browser (PEB) is an HTML5 user interface for [Perl 5](https://www
3232
* [Interactive Perl Scripts](./doc/SETTINGS.md#interactive-perl-scripts)
3333
* [Starting Local Server](./doc/SETTINGS.md#starting-local-server)
3434
* [Selecting Files and Folders](./doc/SETTINGS.md#selecting-files-and-folders)
35+
* [LOGGING](./doc/LOGGING.md)
3536
* [PACKAGING](./doc/PACKAGING.md)
3637
* [Minimal Relocatable Perl Distribution for PEB](./doc/PACKAGING.md#minimal-relocatable-perl-distribution-for-peb)
3738
* [AppImage Support](./doc/PACKAGING.md#appimage-support)
38-
* [DEBUGGING](./doc/DEBUGGING.md)
3939
* [History](#history)
4040
* [License](./LICENSE.md)
4141
* [Thanks and Credits](./doc/CREDITS.md)
@@ -83,7 +83,7 @@ These are the basic steps for building your first PEB-based application using a
8383
* [Perl local servers can be started.](./doc/SETTINGS.md#starting-local-server)
8484
* [Any version of Perl 5 can be used.](./doc/REQUIREMENTS.md#runtime-requirements)
8585
* [Single file or multiple files, new filename, existing or new directory can be selected by user.](./doc/SETTINGS.md#selecting-files-and-folders)
86-
* Unified logging of Perl scripts and JavaScript in the JavaScript console
86+
* [Unified logging of Perl and JavaScript errors in the JavaScript console](./doc/LOGGING.md)
8787
* [Optional labels for all JavaScript popup boxes and context menus](./doc/SETTINGS.md#html-page-api)
8888
* [Optional icon for the main window and all dialog boxes](./doc/CONSTANTS.md#icon)
8989
* [Optional warning for unsaved data in HTML forms](./doc/SETTINGS.md#html-page-api)

doc/LOGGING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Perl Executing Browser - Logging
2+
--------------------------------------------------------------------------------
3+
4+
PEB supports unified logging of Perl and JavaScript errors in the JavaScript console.
5+
All you need to do to read error logs is to open the JavaScript console.
6+
7+
## Opening the JavaScript Console on QtWebkit Builds
8+
Start the QWebInspector using the keyboard shortcut <kbd>Ctrl</kbd> + <kbd>I</kbd> and go to the ``Console`` tab.
9+
10+
## Opening the JavaScript Console on QtWebEngine Builds
11+
Start PEB with the following command-line argument supplying an arbitrary private port:
12+
13+
```bash
14+
peb --remote-debugging-port=8080
15+
```
16+
17+
and open the following URL using any browser:
18+
19+
``http://localhost:8080``
20+
21+
to access the QtWebEngine Developer Tools and go to the ``Console`` tab.

0 commit comments

Comments
 (0)