5
5
## ///// β Adelie Debug :: Debugging tool
6
6
7
7
![ alt text] ( https://repository-images.githubusercontent.com/485308409/7da19feb-cc5b-43ae-bf66-6d8d24c9a2b7 )
8
-
8
+
9
9
10
10
---
11
11
12
12
PRELOAD | Adelie Debug
13
13
------------ | -------------
14
14
Description | Adelie Debug is a powerful development tool for XCL modules, preloads and themes developers
15
15
Render Engine | Smarty v2
16
- Version | 2022
16
+ Version | 2022-05-07
17
17
Author | Update by @nao-pon Naoki Sawada (PHP7), @gigamaster Nuno Luciano (XCL7)
18
18
Author | Original by Suin (suin.io)
19
19
Copyright | 2011-2022 Authors
@@ -38,14 +38,14 @@ License | GPL
38
38
39
39
#### 1. Easy-to-read debug screen
40
40
41
- * Timeline display: All PHP and SQL logs are aggregated in one timeline.
41
+ * Timeline display: All PHP and SQL logs are aggregated in one timeline.
42
42
A device that makes it easier to understand the context of processing.
43
43
* Highlight errors: SQL and PHP errors are highlighted so they are visual.
44
44
45
45
46
46
### 2. Useful debug functions
47
47
48
- * adump (mixed [ , mixed, ...] ): Enclose var_dump () in a pre tag to make it easier to see,
48
+ * adump (mixed [ , mixed, ...] ): Enclose var_dump () in a pre tag to make it easier to see,
49
49
and even show where the function is written.
50
50
* atrace (): Traces the processing path. It's obvious where the function is called.
51
51
* awhich (object or class_name_string): Shows what line in which file a class or function is defined.
@@ -54,25 +54,25 @@ License | GPL
54
54
55
55
### 3. Being a tool for XOOPS Cube Legacy
56
56
57
- * You no longer need to add exit () after var_dump () or write <{stdout}> for the theme.
57
+ * You no longer need to add exit () after var_dump () or write <{stdout}> for the theme.
58
58
This is because AdelieDebug automatically bypasses the XOOPS ob_buffer.
59
- * There is no such thing as var_dump () on the XML output screen that makes Ajax testing unsuccessful.
59
+ * There is no such thing as var_dump () on the XML output screen that makes Ajax testing unsuccessful.
60
60
AdelieDebug automatically turns off debug output on AJAX requests and in contexts other than HTML output.
61
61
62
62
### 4. Must be a tool used in practice
63
63
64
64
* It's the tool developers use when developing modules at work.
65
65
66
- For more detailed introductions (Japanese) :
67
- [ XOOPS Cube & TOKYO Pen's powerful debugging tool AdelieDebug | @suin ] (https://suin.io/530 ).
66
+ For more detailed introductions (Japanese) :
67
+ [ XOOPS Cube & TOKYO Pen's powerful debugging tool AdelieDebug | @suin ] (https://suin.io/530 ).
68
68
[ XOOPS γ§ AdelieDebugε©η¨δΈγ―γͺγγ€γ¬γ―γεζ’γγγ | @RyujiAMANO ] (http://suin.asia/2012/01/06/xoops-adelie-debug ).
69
69
70
70
71
71
## Basic usage
72
72
73
73
### install
74
74
75
- Just put the preload file ** AdelieDebug.class.php** in the folder /html/preload/
75
+ Just put the preload file ** AdelieDebug.class.php** in the folder /html/preload/
76
76
77
77
78
78
### How to install with wget:
@@ -90,16 +90,16 @@ When you no longer need it, just remove the file **AdelieDebug.class.php** from
90
90
91
91
### ADELIE_DEBUG_ERROR_REPORTING
92
92
93
- You can adjust the error reporting level of AdelieDebug by setting
94
- the constant ` ADELIE_DEBUG_ERROR_REPORTING ` in ` mainfile.php `
95
- If this constant is not set, it will be ` error_reporting (-1) `
96
- That is, it notifies you of all errors.
93
+ You can adjust the error reporting level of AdelieDebug by setting
94
+ the constant ` ADELIE_DEBUG_ERROR_REPORTING ` in ` mainfile.php `
95
+ If this constant is not set, it will be ` error_reporting (-1) `
96
+ That is, it notifies you of all errors.
97
97
98
- This setting should not be used.
99
- However, deprecation warnings and non-critical errors in legacy code of XOOPS2 modules
100
- doesn't make it easier to see more serious errors in PHP7 and later.
98
+ This setting should not be used.
99
+ However, deprecation warnings and non-critical errors in legacy code of XOOPS2 modules
100
+ doesn't make it easier to see more serious errors in PHP7 and later.
101
101
You should adjust ` ADELIE_DEBUG_ERROR_REPORTING ` only if
102
- it has a significant impact on efficiency in PHP7 development environment.
102
+ it has a significant impact on efficiency in PHP7 development environment.
103
103
104
104
105
105
```
@@ -125,38 +125,38 @@ And everything should run just fine.
125
125
126
126
### Build
127
127
128
- You can build it by running this on the command line :
128
+ You can build it by running this on the command line :
129
129
```
130
130
# php compile.php
131
131
```
132
- The latest version of yuicompressor is placed in ~ /bin/yuicompressor-2.4.8.jar
133
- In case of issues with path, change the config to build with 2.4.7.jar
132
+ The latest version of yuicompressor is placed in ~ /bin/yuicompressor-2.4.8.jar
133
+ In case of issues with path, change the config to build with 2.4.7.jar
134
134
135
135
## Tips
136
136
137
137
### Use adump () with Smarty
138
138
139
- You can also dump the contents of a variable in a template :
139
+ You can also dump the contents of a variable in a template :
140
140
``` <{$ variable | @adump}> ```
141
141
142
142
### xContainer and xdesktop
143
- Depending on your app stack version, Virtual Machine or BootDocker,
144
- both are running a customized debian distribution. Click "Open Shell"
143
+ Depending on your app stack version, Virtual Machine or BootDocker,
144
+ both are running a customized debian distribution. Click "Open Shell"
145
145
and install the required update of Java :
146
146
147
147
```
148
148
# apt-get update
149
- ```
149
+ ```
150
150
Then install Java :
151
151
```
152
152
# apt-get install default-jre
153
- ```
153
+ ```
154
154
155
- ? ** Successfully updated**
156
- You will be prompt with a message of packages automatically installed
157
- and those who are no longer required.
158
- Use 'apt-get autoremove' to remove them.
159
- You will be prompt with a message :
155
+ ? ** Successfully updated**
156
+ You will be prompt with a message of packages automatically installed
157
+ and those who are no longer required.
158
+ Use 'apt-get autoremove' to remove them.
159
+ You will be prompt with a message :
160
160
Do you want to continue? [ Y/n]
161
161
In the interactive prompts, press ** Y** and enter.
162
162
@@ -166,6 +166,6 @@ if you get an error message, try this :
166
166
```
167
167
# export LD_LIBRARY_PATH=/usr/lib/
168
168
# apt-get install openjdk-7-jre-headless
169
- ```
170
-
169
+ ```
170
+
171
171
Have Fun ^_ ^/
0 commit comments