-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The Output window and Debug console window of VSCode does not display output #8
Comments
Moreover, when I use "print" function, everything is normal |
Hi, You are correct, seems like the logs functions aren't caught by VS Code. Thanks for reporting this! Cheers, |
Similar thing with the errors. For example running the script: from importlib import reload
import unreal
print('script is loaded.')
EAL = unreal.EditorAssetLibrary
items = EAL.list_assets('/All') in VS Code:
in Unreal:
|
And with the code below it also gives completely empty output in VS Code: from importlib import reload
import unreal
print('script is loaded.')
def list_asset_paths():
EAL = unreal.EditorAssetLibrary
items = EAL.list_assets('/Game')
for item in items:
print(item)
list_asset_paths() Interestingly if you comment out the last line, you'll get "script is loaded.". PS Wanted to say thank you for this feature, never thought I'd need it but turn out removing some extra steps to run code (alt+tab, reload python module, call module function...) is speeding up debugging process quite a bit and making it feel much better. |
Hi @Andrej730, The first example is tricky, technically it's a Your second example was a bug that occurred because the data Unreal was trying to send was too large and so it split it into 2 packages, which I hadn't accounted for. This will be fixed in the next update, thanks for reporting! Cheers, |
Version 0.2.3 has now been released fixing the python log functions & too large outputs not showing up in the output channel. |
Hi, After some careful consideration and the re-write of the module communicating with Unreal Engine for the 1.0.0 release, I'm going to close this issue for now, but if this is an issue that keeps coming up this might be revisited. Thank you both for reporting these issues though! |
Hi Nils,
When I run the code, the output is displayed normally in UE, but not in vscode. However, the screenshot you provided shows that yours is normal. May I ask where I went wrong?
The text was updated successfully, but these errors were encountered: