Jump to content
Korean Random
Dobrorad

Дебаг в среде для разработки модов

Recommended Posts

Приветствую форумчане!
Нужен совет, может кто сталкивался.
Для разработки модов использую Pycharm. Надумал прикрутить python debug server.

- распаковал архив PYCHARM/debug-eggs/pydevd-pycharm.egg в папку WOT\res_mods\{version}\scripts\common\pydev\pycharm\pydev

- в своем моде выполнил 

import bwpydevd
bwpydevd.startDebug()

Мод запускается, но вызов bwpydevd.startDebug() валится с ошибкой.

ERROR:   File "scripts/common/bwpydevd.py", line 109, in startPyDevD
ERROR:   File "./pydevd.py", line 40, in <module>
ERROR:   File "./pydevd_tracing.py", line 1, in <module>
ERROR:   File "scripts/common/Lib/ctypes/__init__.py", line 10, in <module>
ERROR: ImportError: No module named _ctypes
ERROR: scripts/common/bwpydevd.py(118) : startPyDevD: Failed to load pydevd: ImportError('No module named _ctypes',)


Debug server естественно не работает. На этом месте завис и бьюсь уже третьи сутки.

Не совсем понятно почему в wot не работает ctypes. Читал, что можно реанимировать импорт _ctypes с помощью _ctypes.pyd,но у меня ничего не получилось (инструкции 2015 годов).
Быть может, я неверно подключаю debug server.
Подскажите, пожалуйста, в чем может быть проблема?

Share this post


Link to post

Short link
Share on other sites
38 минут назад, Dobrorad сказал:

Подскажите, пожалуйста, в чем может быть проблема?

 

В клиенте игры импорты для ctype и других модулей взаимодействия с ОС - отсутствуют. 

Share this post


Link to post

Short link
Share on other sites
23 минуты назад, StranikS_Scan сказал:

 

В клиенте игры импорты для ctype и других модулей взаимодействия с ОС - отсутствуют. 

Понятно, спасибо. Может есть какие-то другие способы дебага исполняемого мода?

Share this post


Link to post

Short link
Share on other sites
On 1/22/2022 at 10:18 PM, Dobrorad said:

Понятно, спасибо. Может есть какие-то другие способы дебага исполняемого мода?

print()

Share this post


Link to post

Short link
Share on other sites
On 1/25/2022 at 7:28 AM, SkepticalFox said:

print()

Yes. print() . I use this to debug all the way , without a debugging server or other. Just launch wot client repeatedly and watch the log.

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...