Deutsch   English   Français   Italiano  
<loading-20240904165126@ram.dialup.fu-berlin.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Crash when launching python
Date: 4 Sep 2024 15:52:28 GMT
Organization: Stefan Ram
Lines: 20
Expires: 1 Jul 2025 11:59:58 GMT
Message-ID: <loading-20240904165126@ram.dialup.fu-berlin.de>
References: <mailman.33.1725463675.2917.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de YedDy24AoQ5Kgyx4XoIyGggkvvVb69/H44pte3ZlM8GLjL
Cancel-Lock: sha1:EnwJ+BmTJ+3WclzyS3WL9HyRnls= sha256:wWYnU8zB2Kbv8a9YJKvE7dQFGm7GIa8OG/G1jYONJLw=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
	Distribution through any means other than regular usenet
	channels is forbidden. It is forbidden to publish this
	article in the Web, to change URIs of this article into links,
        and to transfer the body without this notice, but quotations
        of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
	services to mirror the article in the web. But the article may
	be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Bytes: 2250

Guenther Sohler <guenther.sohler@gmail.com> wrote or quoted:
>Is it possible to turn on debugging and  to display on the console, where
>python is loading files from ?

  The "-v" flag? It's like a snitch for module loading. It'll spill
  the beans on where each module's coming from - whether it's a file
  or baked right into Python. Stack those "-v"s for the full 411.

  Now, if you're feeling extra Californian, you can set the
  "PYTHONVERBOSE" environment variable to some integer. It's like
  hitting the "-v" button multiple times, but with that laid-back
  West Coast vibe.

  Oh, and get this - "sys.settrace(tracefunc)" is like the
  ultimate stalker for your code. It lets you set up a trace
  function that'll tail your Python source code closer than
  paparazzi on Rodeo Drive. Perfect for when you wanna debug
  your code like you're solving a Hollywood mystery!