Commit Graph

28 Commits (feec47d9828ac205990196e32b5dbc812a2527ed)

Author SHA1 Message Date
Frans de Jonge feec47d982
[doc] Documentation stub for Dbg module (#7677)
Cf. <https://github.com/koreader/koreader/pull/7664#discussion_r631858784>.
3 years ago
NiLuJe 6e3a3e8069
[Kobo] Support USBMS exports (#6552)
* \o/

* Make sure the (debug) event log doesn't end up in the fd table of our child processes...
Otherwise, it breaks USBMS.

* Close suspicious fds in the Wi-Fi scripts
To prevent any and all issues w/ USBMS down the road...

* Minor USBMS UI tweaks

* Always ask for confirmation to start on USBMS session on plug

* Bump base

https://github.com/koreader/koreader-base/pull/1161
https://github.com/koreader/koreader-base/pull/1162
https://github.com/koreader/koreader-base/pull/1163
https://github.com/koreader/koreader-base/pull/1165
https://github.com/koreader/koreader-base/pull/1167
4 years ago
Frans de Jonge a2dcfe9aec
[doc] Tag @todo, @fixme and @warning (#5244)
This commit standardizes the various todos around the code a bit in a manner recognized by LDoc.

Besides drawing more attention by being displayed in the developer docs, they're also extractable with LDoc on the command line:

```sh
ldoc --tags todo,fixme *.lua
```

However, whether that particular usage offers any advantage over other search tools is questionable at best.

* and some random beautification
5 years ago
Martín Fernández 236724ef3e use android log categories 5 years ago
Frans de Jonge 7f4be45d4e
[chore] Handle SDL_MOUSEWHEEL and less hackish SDL events (#3826) 6 years ago
Hzj_jie 7d2ed4c3d0 Move kobo auto-suspension logic out of UIManager (#2933) 7 years ago
Hzj_jie 30378eb2a8 Add restart koreader function and ensure FlushSettings event can be delivered to all widgets (#2772) 7 years ago
Qingping Hou 77b07255f0 chore: make input debug less verbose 7 years ago
Qingping Hou f95ad00b9e feat: add logger module & rewrite kobo suspend script in lua 7 years ago
Qingping Hou 4540d51a6e settings: add entry to toggle debug mode 8 years ago
Qingping Hou 6d578b26f5 minor: use io.write instead of print for dbg module 8 years ago
chrox 9ab005a1d3 fix unit test of readerlink and readerpaging
and have more confidence with the unit testing framework.

Now `make testfront` won't retry on failure and testing files are
ordered in each run so that it's possible to reproduce testing failure.

And this patch also fix flush settings not working before suspend issue:
at some point the `FlushSettings` event is sent to `UIManager` instead
of `ReaderUI`, but `UIManager` only delegated events to active widgets
and `ReaderUI` is actually not an active widgets thus will miss the event.

This patch also add a verbose debug mode with "-v" as a switch to turn
on this mode. With verbose mode on, event handling will be logged.
8 years ago
Qingping Hou ab9a86788f dbg: prefix log with datetime 8 years ago
Qingping Hou cc425287da doc(fix): avoid module keyword 8 years ago
Qingping Hou e3137134f8 dbg(add): guard method to toggle assert at based at runtimemode 8 years ago
chrox a60544b1ad Koreader Ubuntu-touch port
Currently only tested on Ubuntu-touch emulator with framework
ubuntu-sdk-14.10 for armhf.
The ubuntu-touch port is binary compatible with the Kobo port
major changes in this PR are:
1. rename the emulator device to sdl device since both the emulator
and the ubuntu-touch target use libsdl to handle input/output.
2. ubuntu-touch app has no write access to the installation dir so
all write-outs should be in a seperate dir definded in `datastorage`.
9 years ago
Hans-Werner Hilse 5b48c165b3 factor out dump() function, handle reference loops 10 years ago
Frans de Jonge 3334903e8c Actually flush stdio rather than all io. 10 years ago
Frans de Jonge 65d3cacd7c Flush stdio to prevent buffering multiple debugging messages when redirecting output to file. 10 years ago
chrox a9fceec193 os.execute may cause FC on Android 10 years ago
chrox 3520e0c47e partially working android build
Now the Android build should read PDF and EPUB documents
with limited gestures recognized such as "tap" and "swipe"
10 years ago
chrox 0a4a092d12 initial commit for android port of koreader
This PR just shows how far we have went to
the android port. There is still a few steps before a running
android port.
10 years ago
chrox 92219a1f1e cleanup: expand tab to 4 spaces 10 years ago
chrox 0cdc5b64f4 fix debug on/off toggle 11 years ago
HW ef111b99c6 Refactored to use strictly locals 11 years ago
chrox 1ee6d5a9c5 add DEBUGBT function to traceback certain location 11 years ago
Qingping Hou 24400c06e6 add LvDEBUG
so we can get rid of stack overflow when dumping a widget
11 years ago
Qingping Hou 10d980ed87 rearranged source tree 11 years ago